package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公益活动参与记录对象 credit_charity_activity_participant
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
public class CreditCharityActivityParticipant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 参与记录ID */
    private Long participantId;

    /** 活动ID */
    @Excel(name = "活动ID")
    private Long activityId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 参与日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "参与日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date participationDate;

    /** 实际参与时长(小时) */
    @Excel(name = "实际参与时长(小时)")
    private BigDecimal actualDuration;

    /** 贡献描述 */
    @Excel(name = "贡献描述")
    private String contribution;

    /** 捐赠金额 */
    @Excel(name = "捐赠金额")
    private BigDecimal donationAmount;

    /** 获得积分 */
    @Excel(name = "获得积分")
    private Integer pointsEarned;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setParticipantId(Long participantId) 
    {
        this.participantId = participantId;
    }

    public Long getParticipantId() 
    {
        return participantId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setParticipationDate(Date participationDate) 
    {
        this.participationDate = participationDate;
    }

    public Date getParticipationDate() 
    {
        return participationDate;
    }
    public void setActualDuration(BigDecimal actualDuration) 
    {
        this.actualDuration = actualDuration;
    }

    public BigDecimal getActualDuration() 
    {
        return actualDuration;
    }
    public void setContribution(String contribution) 
    {
        this.contribution = contribution;
    }

    public String getContribution() 
    {
        return contribution;
    }
    public void setDonationAmount(BigDecimal donationAmount) 
    {
        this.donationAmount = donationAmount;
    }

    public BigDecimal getDonationAmount() 
    {
        return donationAmount;
    }
    public void setPointsEarned(Integer pointsEarned) 
    {
        this.pointsEarned = pointsEarned;
    }

    public Integer getPointsEarned() 
    {
        return pointsEarned;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("participantId", getParticipantId())
            .append("activityId", getActivityId())
            .append("userId", getUserId())
            .append("participationDate", getParticipationDate())
            .append("actualDuration", getActualDuration())
            .append("contribution", getContribution())
            .append("donationAmount", getDonationAmount())
            .append("pointsEarned", getPointsEarned())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
} 